from agno.agent import Agent, AgentKnowledge
from agno.models.deepseek import DeepSeek

# Create a knowledge base for the Agent
knowledge_base = AgentKnowledge(vector_db="tmp/knowledge.db")

# Add information to the knowledge base
knowledge_base.load_text("The sky is blue")

# Add the knowledge base to the Agent and
# give it a tool to search the knowledge base as needed
agent = Agent(
    model=DeepSeek(id="deepseek-chat"), knowledge=knowledge_base, search_knowledge=True
)

agent.print_response("今天天空是什么颜色？")
